From: kaf24@firebug.cl.cam.ac.uk Date: Wed, 13 Sep 2006 14:14:24 +0000 (+0100) Subject: [XEN] Use C locale in bootup message. X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~15658^2~53^2~4 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/%22bookmarks://%22Dat/%22http:/www.example.com/cgi/%22https:/%22bookmarks:/%22Dat?a=commitdiff_plain;h=d90899c1d8585428a9ceadd12a2cd08fa59bacea;p=xen.git [XEN] Use C locale in bootup message. LC_ALL=C is needed to ensure C locale output in date. Without this locale-specific, and thus potentially non-ascii data will end up in include/xen/compile.h which is displayed on the (often only ascii capable) terminal at bootup. In any case, its good to have a consistent bootup message, regadless of the locale prevailing at build. Signed-Off-By: Simon Horman --- diff --git a/xen/Makefile b/xen/Makefile index cad1dc1407..6f6d888e70 100644 --- a/xen/Makefile +++ b/xen/Makefile @@ -90,10 +90,9 @@ include/xen/acm_policy.h: echo "#endif") >$@ # compile.h contains dynamic build info. Rebuilt on every 'make' invocation. -include/xen/compile.h: LANG=C include/xen/compile.h: include/xen/compile.h.in - @sed -e 's/@@date@@/$(shell date)/g' \ - -e 's/@@time@@/$(shell date +%T)/g' \ + @sed -e 's/@@date@@/$(shell LC_ALL=C date)/g' \ + -e 's/@@time@@/$(shell LC_ALL=C date +%T)/g' \ -e 's/@@whoami@@/$(shell whoami)/g' \ -e 's/@@domain@@/$(shell ([ -x /bin/dnsdomainname ] && /bin/dnsdomainname) || ([ -x /bin/domainname ] && /bin/domainname || echo [unknown]))/g' \ -e 's/@@hostname@@/$(shell hostname)/g' \